<script setup>
import { ref } from 'vue'

const bottomList = ref([
  {
    icon: '/src/static/991.png',
    title: '食品安全',
    text: '精选生鲜 严格质检',
    color: '#849702'
  },
  {
    icon: '/src/static/992.png',
    title: '全程冷链',
    text: '自营物流 安全可控',
    color: '#66AAD7'
  },
  {
    icon: '/src/static/993.png',
    title: '鲜活天然',
    text: '绿色生志 严选优品',
    color: '#8AC06F'
  },
  {
    icon: '/src/static/994.png',
    title: '产地直采',
    text: '限定产源 质量保证',
    color: '#CE8E6F'
  },
  {
    icon: '/src/static/995.png',
    title: '无忧售后',
    text: '优鲜赔 售后通道',
    color: '#358DC8'
  }
])
</script>

<template>
  <div class="category-bottom-item text" style="background-color:#fff;">
    <div v-for="(item,index) in bottomList" :key="item.color" :style="{color:item.color}" class="text-item">
      <div class="word" style="line-height: 30px;font-size: 21px">
        <img :src="item.icon" width="21px">
        {{ item.title }}
      </div>
      <div class="word" style="font-size: 16px">{{ item.text }}</div>
      <div class="v-line"></div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.category-bottom-item {
  width: 100%;
}

.text {
  width: 100%;
  height: 200px;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;

  &-item {
    position: relative;
    width: 30%;
    height: 80%;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    transition: all 0.2s ease-in-out;

    .word {
      transition: all ease-in-out 0.2s;

      &:hover {
        font-size: large !important;
      }
    }

    .v-line {
      width: 3px;
      height: 4.5rem;
      background-color: #bdbdbd;
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
    }
  }
}
</style>